import 'package:flutter_nb_net/flutter_net.dart';

class UserProtocolModel extends BaseNetModel {

  UserProtocolBean? data;
  num? code;
  String? msg;


  UserProtocolModel({this.data, this.code, this.msg});

  UserProtocolModel.fromJson(dynamic json) {
    data = json['data'] != null ? UserProtocolBean.fromJson(json['data']) : null;
    code = json['code'];
    msg = json['msg'];
  }

  @override
  fromJson(Map<String, dynamic> json) {
    return UserProtocolModel.fromJson(json);
  }
  
}

class UserProtocolBean extends BaseNetModel {

  String? protocolContent;

  UserProtocolBean.fromJson(dynamic json) {
    protocolContent = json['protocolContent'];
  }

  @override
  fromJson(Map<String, dynamic> json) {
    return UserProtocolBean.fromJson(json);
  }
}